//Display the star using the condition
function set_votes() {
	var condition = document.getElementById('item_condition').value; 
	
	$('.rate_widget').find('.star_' + condition).prevAll().andSelf().addClass('ratings_vote');
	$('.rate_widget').find('.star_' + condition).nextAll().removeClass('ratings_vote');
}

$(function(){
	set_votes();
});